info = []
info1 = list()
print(info)
print(info1)
info2 = [11,"aaa",1.88]
print(info2)

data_list = ['python' , 'java','python','php']
num = data_list.count("python")
print(num)
print(data_list.count("java"))
print(data_list.count("c++"))

val_list = ["web自动化","ui自动化","接口自动化"]
val_list.append("APP自动化")
print(val_list)
val_list.append(11)
print(val_list)

val_list = ["web自动化","ui自动化","接口自动化"]
val_list.insert(1,"APP自动化")
print(val_list)
val_list.insert(6,"java")
print(val_list)

info1 = [1,2,3]
info2 = [4,5,6]
info1.extend(info2)
print(info1)
info2.extend(info1)
print(info2)

val_list = ["web自动化","ui自动化","接口自动化","APP自动化","java"]
val_list.pop(2)
print(val_list)
val_list.pop()
print(val_list)

val_list = ["web自动化","ui自动化","接口自动化","APP自动化","java"]
val_list.remove("APP自动化")
print(val_list)
val_list.remove("java")
print(val_list)

val_list = ["web自动化","ui自动化","接口自动化","APP自动化","java"]
val_list[1] = "性能自动化"
print(val_list)
val_list[3] = "python"
print(val_list)

info = [8,100,30,10,40,2]
info.sort()
info.sort(reverse=False)
print(info)
info.sort(reverse=True)
print(info)

student_list = [["张三","18","功能测试"],["李四","20","接口测试"],["王五","22","python","java"]]
print(student_list[0])
aa = student_list[0]
print(aa[1])
print(student_list[0][1])
print(student_list[1][0])
print(student_list[2][3])

login_data = [["18776895770","123456","8888"],
              ["18776895772", "666666", "8888"],
              ["18776895774","123456","8888"],
              ["18776895770","123456","0000"]]
for i in login_data:
    if i[0] == "18776895770" and i[1] =="123456":
        if i[2] == "8888":
            print("登录成功")
        else:
            print("验证失败")
    else:
        print("用户名或者密码错误")
